public class CountCapLetter {

    public static final String s = "asdfFFDsdf123你好S";

    public static void main(String[] args) {
        int[] cnt = new int[26];
        for (int i = 0; i < s.length(); i++) {
            char t = s.charAt(i);
            if (t >= 'A' && t <= 'Z') {
                ++cnt[t - 'A'];
            }
        }
        char c = 'A';
        for (int i = 0; i < cnt.length; i++) {
            System.out.println(c ++ +":" + cnt[i]);
        }
    }
}